<title>表单组合</title>
<style>


</style>
<div class="layui-card layadmin-header" style="height: 50px; line-height: 50px;">
	<div class="layui-breadcrumb" lay-filter="breadcrumb" style="padding: 0 15px;">
		<a lay-href="">商家中心</a>
		<a><cite>绑定店铺</cite></a>
	</div>
</div>

<script type="text/html" template>
	</script>
<div class="layui-fluid">
	<div class="layui-card">
		<h3 class="layui-card-header">发布推广任务-第二步</h3>
		<div class="layui-card-body" style="padding: 15px;">
			<form class="layui-form" action="" lay-filter="component-form-group">
				<div class="layui-form-item">
					<div class="layui-inline">
						<label class="layui-form-label">选择店铺</label>
						<div class="layui-input-inline">
							<select name="modules" lay-verify="required" lay-search="">
								<option value="">直接选择或搜索选择</option>
								<option value="1">layer</option>
								<option value="2">form</option>
								<option value="3">layim</option>
								<option value="4">element</option>
								<option value="5">laytpl</option>
								<option value="6">upload</option>
								<option value="7">laydate</option>
								<option value="8">laypage</option>
								<option value="9">flow</option>
								<option value="10">util</option>
								<option value="11">code</option>
								<option value="12">tree</option>
								<option value="13">layedit</option>
								<option value="14">nav</option>
								<option value="15">tab</option>
								<option value="16">table</option>
								<option value="17">select</option>
								<option value="18">checkbox</option>
								<option value="19">switch</option>
								<option value="20">radio</option>
							</select>
						</div>
					</div>
					<div class="layui-inline">
						<a href="/store/add" class="layui-btn" target="_blank">去绑定店铺</a>
					</div>
				</div>



				<div class="layui-form-item">
					<div class="layui-input-block">
						<div class="layui-footer">
							<button class="layui-btn" lay-submit="" lay-filter="component-form-demo1">下一步</button>
						</div>
					</div>
				</div>
			</form>
		</div>
	</div>
</div>


<script>
layui.use(['admin', 'form', 'laydate'], function(){
	var $ = layui.$
	,admin = layui.admin
	,element = layui.element
	,layer = layui.layer
	,laydate = layui.laydate
	,form = layui.form
	,view = layui.view
	,je=layui.common;



	form.render(null, 'component-form-group');

	setTimeout(function(){


	},100);





	/* 提交 */
	form.on('submit(component-form-demo1)', function(data){
		let field=data.field;
		//生成临时信息记录
		admin.req({
			url: './task/add2'
			,type: 'get'
			,data:field
			,done: function(res){
				//跳转到下一步
				location.hash = '/task/add3';
			}
		});

		return false;
	});
});
</script>